import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'vant/lib/index.css'
import {
  Button,
  Tabbar,
  TabbarItem,
  NavBar,
  Icon,
  Swipe,
  SwipeItem,
  Col,
  Row,
  Tab,
  Tabs,
  Lazyload,
  List,
  PullRefresh,
  Collapse,
  CollapseItem,
  Sidebar,
  SidebarItem,
  Card,
  Tag,
  Form,
  Field,
  Image as VanImage,
  SwipeCell,
  SubmitBar,
  Stepper,
  Checkbox,
  CheckboxGroup,
  ContactCard,
  Popup,
  AddressList,
  AddressEdit,
  Uploader
} from 'vant'

createApp(App)
  .use(store)
  .use(router)
  .use(Button)
  .use(Tabbar)
  .use(TabbarItem)
  .use(NavBar)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(Col)
  .use(Row)
  .use(Tab)
  .use(Tabs)
  .use(List)
  .use(PullRefresh)
  .use(Collapse)
  .use(CollapseItem)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Card)
  .use(VanImage)
  .use(Tag)
  .use(Form)
  .use(Field)
  .use(SwipeCell)
  .use(SubmitBar)
  .use(Stepper)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(ContactCard)
  .use(Popup)
  .use(AddressList)
  .use(AddressEdit)
  .use(Uploader)
  .use(Lazyload, { lazyComponent: true })
  .mount('#app')
